﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="leftMenu.ascx.cs" Inherits="OMSWeb.Controls.leftMenu" %>

<script type="text/javascript">   
    $(function() {
        var result = <%=returnStr%>;
           if(result!="")
           {
                 var data = [];
                data.push(result);       
                $("#leftTree").ligerTree({
                    data: result,
                    childIcon: null,
                    parentIcon: null, 
                    checkbox: false,
                    onSelect: onClick,
                    idFieldName :'id',
                    parentIDFieldName :'pid'
                });
            
           } 
             function onClick(note) {
                alert('onClick:' + note.data.id);
                document.location="demo2.aspx";
           }
    });
</script>

<div style="width: 194px;height: auto;text-align: left;border: 1px #6da6b1 solid;">
    <ul id="leftTree" class="left_menu">
    </ul>
</div>
